package org.example;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Properties;

public class Server {
    public static void main(String[] args) throws IOException {
        ServerSocket socket=new ServerSocket(10086);

        while (true){
            Socket accept = socket.accept();
            System.out.println("服务端连接成功");
            new Thread(new MyRunnbale(accept)).start();
        }
    }
}
